<?php
/**
 * User: @lixu
 * Date: 2019-04-03
 * Time: 15:15
 */

ini_set('display_errors', 1); // 配置文件设置了错误不可见， 使用ini_set命令设置可见
error_reporting(-1); // 设置php错误级别 -1 为显示所有级别的错误
require_once '/data/wwwroot/g_vendor/autoload.php'; // 引入自动加载，因为项目的自动加载是在vendor里面

use Biz\model\GoodsBasicInfo as mGoodsBasicInfo;

//$goodsList = mGoodsBasicInfo::select('*', ['first_online_time' => '0000-00-00 00:00:00']);

$result1 = mGoodsBasicInfo::updateByWhere(['first_online_time' => '1970-01-02 08:00:00'], ['first_online_time' => '0000-00-00 00:00:00']);
$result2 = mGoodsBasicInfo::updateByWhere(['operate_time' => '1970-01-02 08:00:00'], ['operate_time' => '0000-00-00 00:00:00']);

var_dump($result1,$result2);die;

